package com.yjkf.zh.admin.service;

import com.yjkf.zh.admin.model.SysMenu;
import com.yjkf.zh.admin.model.SysRole;
import com.yjkf.zh.admin.model.SysRoleMenu;
import com.yjkf.zh.core.page.PageRequest;
import com.yjkf.zh.core.page.PageResult;
import com.yjkf.zh.core.service.CurdService;

import java.util.List;

public interface SysRoleService extends CurdService<SysRole> {
    SysRole findRoleById(Long id);
    List<SysRole> findRoleByName(String roleName);

    //查寻角色菜单集合
    List<SysMenu> findRoleMenus(Long roleId);

    //保存角色菜单信息
    int saveRoleMenu(List<SysRoleMenu> records);

    //查询全部
    List<SysRole> findAll();

    PageResult findPageBy(PageRequest pageRequest, Long id);

    List<SysRole> findSelfAll(Long id);

    SysRole findRoleNameById(String roleName,Long id);
}